package com.lightjet.macross.base.upms.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : lijia
 * @version : 1.0 2020-05-15 10:51
 * description : 路由定义DTO类
 */
@Getter
@Setter
@NoArgsConstructor
public class GatewayRouteDefinitionDTO {
    //路由的Id
    private String id;
    //路由断言集合配置
    private List<GatewayPredicateDefinitionDTO> predicates = new ArrayList<>();
    //路由过滤器集合配置
    private List<GatewayFilterDefinitionDTO> filters = new ArrayList<>();
    //路由规则转发的目标uri
    private String uri;
    //路由执行的顺序
    private int order = 0;
}
